// 导入axios实例
import httpRequest from '../request/index'

// 根据id查询信息
export function apiGetPracticeInfoById(param) {
    return httpRequest({
        url: '/api/getPracticeById/'+param.id,
        method: 'get',
        // params: param,
    })
}
// 查询全部信息
export function apiGetPracticeInfo(param) {
    return httpRequest({
        url: '/api/getPractice',
        method: 'get',
        params: param,
    })
}
// 发布信息
export function apiAddPracticeInfo(param) {
    return httpRequest({
        url: '/api/addPracticeInfo',
        method: 'post',
        data: param,
    })
}
//审核发布
export function apiReviewPractice(param) {
    return httpRequest({
        url: '/api/reviewPractice',
        method: 'post',
        data: param,
    })
}
//删除发布
export function apiDeletePractice(param) {
    return httpRequest({
        url: '/api/deletePractice',
        method: 'post',
        data: param,
    })
}

//修改
export function apiEditPractice(param) {
    return httpRequest({
        url: '/api/updatePracticeInfo',
        method: 'post',
        data: param,
    })
}